import request from '@/utils/request'
// 商品列表
export const getSearch = (data) => request.get('/api/vm-service/skuClass/search', {
  params: data
})
// 新增商品类型
export const getAdd = (data) => request.post('/api/vm-service/skuClass', data)
// 删除商品,字符串拼接
export const getDelete = (data) => request.delete('/api/vm-service/skuClass/' + data)
// 修改商品类型
export const getRevise = (id, data) => request.put(`/api/vm-service/skuClass/${id}`, data)
// 搜索商品类型

// 商品管理
export const getManageSearch = (data) => request.get('/api/vm-service/sku/search', {
  params: data
})
// 新增管理商品
export const getManagePost = (data) => request.post('/api/vm-service/sku', data)

// 修改管理商品
export const getManageRevise = (id, data) => request.put(`/api/vm-service/sku/${id}`, data)
